import request from '@/utils/request'

// 查询问卷问题列表
export function listQuestions(query) {
  return request({
    url: '/system/questions/list',
    method: 'get',
    params: query
  })
}

// 查询问卷问题详细
export function getQuestions(questionsId) {
  return request({
    url: '/system/questions/' + questionsId,
    method: 'get'
  })
}

// 新增问卷问题
export function addQuestions(data) {
  return request({
    url: '/system/questions',
    method: 'post',
    data: data
  })
}

// 修改问卷问题
export function updateQuestions(data) {
  return request({
    url: '/system/questions',
    method: 'put',
    data: data
  })
}

// 删除问卷问题
export function delQuestions(questionsId) {
  return request({
    url: '/system/questions/' + questionsId,
    method: 'delete'
  })
}
